﻿using UnityEngine;
using System.Collections;

public class fromColliderScript : MonoBehaviour {

	void Awake(){
		BoxCollider B=gameObject.AddComponent<BoxCollider>();
		B.center=new Vector3(0.0f,2.5f,0.0f);
		B.size=B.size+new Vector3(0.0f,5.0f,0.0f);
		B.isTrigger=true;

	}
	void OnTriggerEnter(Collider other) {
		if(other.gameObject.tag=="Marble")
			SendMessageUpwards("fromColliderHit",gameObject);
	}

}
